package com.hznu.stmanage.dao;

import com.hznu.stmanage.entity.Manager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ManagerMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Manager record);

    int insertSelective(Manager record);

    Manager selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Manager record);

    int updateByPrimaryKey(Manager record);

    /**
     * 根据用户名查找管理员
     * @param username
     * @return
     */
    Manager selectByUsername( String username);
}